import { MonsterType } from "js/typeDefine/typeDefine";

export default {
    getAnger: 10,
    angerMax: 100,
    highLevelValue: {
        [MonsterType.Normal]: 0,
        [MonsterType.Elite]: 15,
        [MonsterType.Lord]: 30,
        [MonsterType.Boss]: 50,
    },
    HatredCalcList: {
        1: { //最近的攻击
            IsDistance: true,
            IsRand: false,
            battlePos: [
                [1, 1, 1, 1],
                [10, 10, 10, 10],
                [50, 50, 50, 50],
            ]
        },
        2: { //随机攻击
            IsDistance: false,
            IsRand: true,
            battlePos: [
                [10, 10, 10, 10],
                [8, 8, 8, 8],
                [4, 4, 4, 4],
            ]
        },
        3: { //优先攻击后排
            IsDistance: true,
            IsRand: true,
            battlePos: [
                [50, 50, 50, 50],
                [10, 10, 10, 10],
                [1, 1, 1, 1],
            ]
        },
        4: { //最近的攻击,攻击后方敌人
            IsDistance: true,
            IsRand: false,
            RangeType: 1,
            battlePos: [
                [50, 50, 50, 50],
                [10, 10, 10, 10],
                [2, 2, 2, 2],
            ]
        },
        5: { //最近的攻击,攻击并排的敌人
            IsDistance: true,
            IsRand: false,
            RangeType: 2,
            battlePos: [
                [50, 50, 50, 50],
                [10, 10, 10, 10],
                [1, 1, 1, 1],
            ]
        },
        6: { //最近的攻击,十子斩
            IsDistance: true,
            IsRand: false,
            RangeType: 3,
            battlePos: [
                [2, 2, 2, 2],
                [12, 20, 20, 12],
                [2, 2, 2, 2],
            ]
        },
        7: { //最近的攻击,攻击范围内的敌人
            IsDistance: true,
            IsRand: false,
            RangeType: 4,
            battlePos: [
                [1, 1, 1, 1],
                [10, 50, 50, 10],
                [1, 1, 1, 1],
            ],
            hitRang1: {
                0: [[0, 1, 4, 5]],
                1: [[0, 1, 4, 5], [1, 2, 5, 6]],
                2: [[1, 2, 5, 6], [2, 3, 6, 7]],
                3: [[2, 3, 6, 7]],
                4: [[0, 1, 4, 5], [4, 5, 8, 9]],
                5: [[0, 1, 4, 5], [1, 2, 5, 6], [4, 5, 8, 9], [5, 6, 9, 10]],
                6: [[1, 2, 5, 6], [2, 3, 6, 7], [5, 6, 9, 10], [6, 7, 10, 11]],
                7: [[2, 3, 6, 7], [6, 7, 10, 11]],
                8: [[4, 5, 8, 9]],
                9: [[4, 5, 8, 9], [5, 6, 9, 10]],
                10: [[5, 6, 9, 10], [6, 7, 10, 11]],
                11: [[6, 7, 10, 11]]
            },
            hitRang2: {
                0: [[0, 4, 8]],
                1: [[1, 5, 9]],
                2: [[2, 6, 10]],
                3: [[3, 7, 11]],
                4: [[0, 4, 8]],
                5: [[1, 5, 9]],
                6: [[2, 6, 10]],
                7: [[3, 7, 11]],
                8: [[0, 4, 8]],
                9: [[1, 5, 9]],
                10: [[2, 6, 10]],
                11: [[3, 7, 11]]
            },
            hitRang3: {
                0: [[0, 1], [0, 4]],
                1: [[0, 1], [1, 2], [1, 5]],
                2: [[1, 2], [2, 3], [2, 6]],
                3: [[2, 3], [3, 7]],
                4: [[0, 4], [4, 5], [4, 8]],
                5: [[1, 5], [4, 5], [5, 6], [5, 9]],
                6: [[2, 6], [5, 6], [6, 7], [6, 10]],
                7: [[6, 7], [7, 11], [3, 7]],
                8: [[4, 8], [8, 9]],
                9: [[8, 9], [5, 9], [9, 10]],
                10: [[9, 10], [10, 11], [7, 10]],
                11: [[10, 11], [7, 11]]
            },
            hitRang4: {
                0: [[0, 1, 2, 3]],
                1: [[0, 1, 2, 3]],
                2: [[0, 1, 2, 3]],
                3: [[0, 1, 2, 3]],
                4: [[4, 5, 6, 7]],
                5: [[4, 5, 6, 7]],
                6: [[4, 5, 6, 7]],
                7: [[4, 5, 6, 7]],
                8: [[8, 9, 10, 11]],
                9: [[8, 9, 10, 11]],
                10: [[8, 9, 10, 11]],
                11: [[8, 9, 10, 11]]
            },
        },
        8: { //血量最低的
            battlePos: [
                [2, 2, 2, 2],
                [10, 50, 50, 10],
                [2, 2, 2, 2],
            ]
        }
    }
}